<li class="uk-grid" id="attachment-<%= attachment.id %>">
  <div class="uk-width-3-10">
    <%= image_tag attachment.file.url %>
  </div>
  <div class="uk-width-5-10" style="overflow: hidden">
    <%= text_field_tag :url, attachment.file.url, class: 'attachment-url-field' %>
  </div>
  <div class="uk-width-1-10">
    <%= link_to content_tag(:i, nil, class: 'uk-icon-times'), admin_attachment_path(attachment), method: :delete, remote: true, 'data-confirm' => '是否删除！？' %>
  </div>
</li>